#判断用户是否可登录

# x = input("用户名:")
# y = input("密码:")
# if x and y in ("qwertyuiopasdfghjklzxcvbnm1234567890!@#$%^&*"):
#     print("恭喜你登录成功")
# else:
#     print("用户名或密码错误")
#
# #判断奇偶数

# for num in range(21):
#     num1 = input("请输入数字:")
#     num1 = num + 1
#     if num1%2 == 0:
#         print("num为偶数")
#         break
#     if num1%2 == 1:
#         print("num为奇数")
#         break

#输入存款决定我能买的车型

# cun = input("存款:")
# cun = int(cun)
# if cun > 100000:
#     print("大众")
# elif cun > 500000:
#     print("宝马x7")
# elif cun > 1000000:
#     print("帕萨特")
# elif cun > 5000000:
#     print("凯迪拉克")

#输出所有水仙花数

# for s in range(100,1000):
#     if (s // 100) ** 3 + (s // 10 % 10) ** 3 + (s % 10) ** 3 == s:
#         print(s)

#边长判断三角形

# a = input("边长1:")
# a = int(a)
# b = input("边长2:")
# b = int(b)
# c = input("边长3:")
# c = int(c)
# if a+b>c or a+c>b or b+c>a:
#     print("该三角形成立")
#     if a==b==c:
#         print("该三角形为等边三角形")
#     elif a==b or a==c or b==c:
#         print("该三角形为等腰三角形")
# else:
#     print("该三角形不成立")

#输出斐波那契数列的前n项（1,1,2,3,5,8...）
#
# n = input("请输入要输出的斐波那契数列项数: ")
# n = int(n)
# a, b = 1, 1
# print("斐波那契数列的前n项为:")
# for i in range(n):
#     if i < 2:
#         print(1, end=" ")
#     else:
#         num = a + b
#         a, b = b, num
#         print(num, end=" ")

#输入一个字符串，统计该字符串的字符个数
# a = 0
# zf = input("请输入字符串:")
# for i in zf:
#     a = a + 1
# print(a)
